package com.qmerak.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qmerak.dao.impl.MemHonourDao;
import com.qmerak.entity.MemHonourEntity;
import com.qmerak.entity.MemberEntity;
import com.qmerak.service.IMemHonourService;

/**
 * @author Shaohong•Cheng
 * @mail shaohong726@126.com
 * @date 2013-4-21
 * @project TUManager
 */
@Service
public class MemHonourServiceImpl implements IMemHonourService {
	@Autowired
	private MemHonourDao memHonourDao;

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.service.IMemHonourService#addMemHonour(com.entity.MemHonourEntity)
	 */
	@Override
	public MemHonourEntity addMemHonour(MemHonourEntity entity) {
		return memHonourDao.add(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.service.IMemHonourService#updateMemHonour(com.entity.MemHonourEntity)
	 */
	@Override
	public void update(MemHonourEntity entity) {
		memHonourDao.update(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.service.IMemHonourService#deleteMemHonour(com.entity.MemHonourEntity)
	 */
	@Override
	public void delete(MemHonourEntity entity) {
		memHonourDao.remove(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.service.IMemHonourService#listOfMem(com.entity.MemberEntity)
	 */
	@Override
	public List<MemHonourEntity> honoursOfMem(MemberEntity entity) {
		return memHonourDao.honourOfMember(entity);
	}

}
